package org.vates.practicofinal.service.impl;

import java.io.Serializable;
import java.util.List;

import org.vates.practicofinal.service.BaseObjectService;

public abstract class BaseObjectServiceImpl<T, PK extends Serializable> extends BaseServiceImpl implements
		BaseObjectService<T, PK> {

	public void save(T entity) {
		getEntityDao().save(entity);
	}

	public void delete(T entity) {
		getEntityDao().delete(entity);
	}

	public void update(T entity) {
		getEntityDao().update(entity);
	}

	public T get(PK id) {
		return getEntityDao().get(id);
	}

	public List<T> getAll() {
		return getEntityDao().getAll();
	}
	
}
